<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.List"%>
<%@ page import="test.demo.Record"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-style-type" content="text/css">
<style type="text/css">
#title {
	margin: 0px 100px 0px 100px;
	background: #BCC4BC;
	padding: 80px 0px 0px 0px;
	height: 400px;
}

#table {
	margin: 0px 100px 0px 100px;
	width: inherit;
}
</style>
<head>
<body>
	<div id="title" align="center">
		<form method="post" action="/ServerSocket/PunchCard">
			欢迎您:
			<%=request.getSession().getAttribute("session_name")%>
			<input type="submit" value="打卡" /><a href="loginOut.jsp">登出</a>
		</form>
		<%
			List<Record> list = null;
			list = (List<Record>) request.getAttribute("queried_list");
			if (list != null) {
		%>
		<table cellpadding="0" border="1" cellspacing="0" align="center"
			id="table">
			<tbody>
				<tr>
					<td>日期</td>
					<td>上班打卡</td>
					<td>下班签退</td>
				</tr>
				<%
					for (Record r : list) {
				%>
				<tr>
					<td><%=r.getDate()%></td>
					<td><%=r.getStartTime()%></td>
					<td><%=r.getEndTime()%></td>
				<tr>
					<%
						}
					%>
				
			</tbody>
		</table>
		<%
			}
		%>
	</div>

</body>
</html>